#include <stdio.h>
int main(void)
{
	int n, i, max;
	i = 1, max = 0;
	printf("Please input a number\n");
	scanf_s("%d", &n);
if (n < 0)
{
	n = -n;


	}
while (i <= n)
{
	max += i;
	++i;


}
printf("the max is %d", max);
return 0;




}